<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/jsp/comm_css_include.jsp"%>
<link href="${basePath}/css/plugins/jqgriddemo/css/ui.jqgrid-bootstrap.min.css" rel="stylesheet" />
<!doctype html>
<html>
<head>
<style type="text/css">
	.m-b-lg{
		margin-bottom: 0px;
	}
	#tabsp {
	 overflow:hidden;
	 zoom:1;
	 border-top: none;
	 border-bottom: 1px solid #e7eaec;
	 height:44px;
	}
	.row>div{
		margin-bottom: 0px;
	}
	
</style>
</head>
<body class="gray-bg">
<div class="container creditbody">
	<div class="iboxtitle">
		<span><i class="glyphicon glyphicon-map-marker"></i>&nbsp;客户总表</span>
		<a href="javascript:void(0)"></a>
	</div>
	<div class="ibox-contentall">
		<table cellpadding="0" cellspacing="0" border="0" class="infor-table">
			<tr>
				<td align="right">
					<label class="control-label np">客户姓名：</label>
				</td>
				<td>
					<div class="control-div np" id="customerName"></div>
				</td>
				<td align="right">
					<label class="control-label np">身份证号码：</label>
				</td>
				<td>
					<div class="control-div np" id="customerNo"></div>
				</td>
				<td align="right">
					<label class="control-label np">附件打包：</label>
				</td>
				<td>
					<div class="control-div np" id="optionType"></div>
				</td>
			</tr>
		</table>	
	</div>
	
	<div class="tab-paneall">
			<div class="panel-bodyall">
			 	<div id="outerall">
				    <ul id="taball">
				    	<c:forEach items="${ywBusinesss }" var="ywBusiness" varStatus="status">
				    		<c:choose>
				    			<c:when test="${status.first }">
				    				<li class="current" id="${ywBusiness.id }" queryCreditApplyId="${ywBusiness.queryCreditApplyId }" onclick="homePage(this);"><fmt:formatDate value='${ywBusiness.submitTime }' pattern='yyyy-MM-dd'/></li>
				    			</c:when>
				    			<c:otherwise>
				    				<li id="${ywBusiness.id }" queryCreditApplyId="${ywBusiness.queryCreditApplyId }" onclick="homePage(this);"><fmt:formatDate value='${ywBusiness.submitTime }' pattern='yyyy-MM-dd'/></li>
				    			</c:otherwise>
				    		</c:choose>
				    	</c:forEach>
				    </ul>    
				<div id="contentall">
					<ul class="ul-style" style="display:block;">		    
						<div class="ibox-content ibox-con">
							<form class="form-horizontal" id="commentForm">
								<div class="business-padding">
								<table cellpadding="0" cellspacing="0" border="0" class="infor-table">
									<tr>
										<td align="right">
											<label class="control-label np">客户姓名：</label>
										</td>
										<td colspan="3">
											<div class="control-div np" id="customerNameZ"></div>
										</td>
									</tr>	
									<tr>	
										<td align="right">
											<label class="control-label np">档案编号：</label>
										</td>
										<td>
											<div class="control-div np" id="noRecord"></div>
										</td>
									
										<td align="right">
											<label class="control-label np">业务编号：</label>
										</td>
										<td>
											<div class="control-div np" id="busiCode"></div>
										</td>
									</tr>	
									<tr>	
										<td align="right">
											<label class="control-label">业务部门：</label>
										</td>
										<td>
											<div class="control-div np" id="orgName"></div>
										</td>
										<td align="right">
											<label class="control-label np">信贷专员：</label>
										</td>
										<td>
											<div class="control-div np" id="salesmanName"></div>
										</td>
									</tr>
									<tr>
										<td align="right">
											<label class="control-label np">经销商类别：</label>
										</td>
										<td>
											<div class="control-div np" id="dealerLevel"></div>
										</td>
										<td align="right">
											<label class="control-label np">经销商：</label>
										</td>
										<td>
											<div class="control-div np" id="dealerName"></div>
										</td>
									</tr>
									<tr>
										<td align="right">
											<label class="control-label np">产品类别：</label>
										</td>
										<td>
											<div class="control-div np" id="loanType"></div>
										</td>
										<td align="right">
											<label class="control-label np">贷款银行：</label>
										</td>
										<td>
											<div class="control-div np" id="loanBank"></div>
										</td>
									</tr>
									<tr>	
										<td align="right">
											<label class="control-label np">订单类型：</label>
										</td>
										<td>
											<div class="control-div yes-green np" id="channelType"></div>
										</td>
										<td align="right">
											<label class="control-label np">银行订单号：</label>
										</td>
										<td>
											<div class="control-div np" id="ordeRno"></div>
										</td>
									</tr>
									
								</table>
							</form>
						</div>
						
						<div class="tab-bg">
							<div class="tab-width">
							   <div class="row m-b-lg">
						            <div class="col-sm-12">
						                <div class="tabs-container-list">
						                    <div class="tabs-left">
						                        <ul class="nav nav-tabs">
						                            <li class="active"><a data-toggle="tab" href="#tab-7" onclick="clickLeftTab1();" id="left_tab_1">审批流转</a></li>
						                            <li class=""><a data-toggle="tab" href="#tab-15" onclick="clickLeftTab9(22);" id="left_tab_9">征信信息</a></li>
						                            <li class=""><a data-toggle="tab" href="#tab-8" onclick="clickLeftTab2(5);" id="left_tab_2">贷前资料</a></li>
						                            <li class=""><a data-toggle="tab" href="#tab-9" onclick="clickLeftTab3();" id="left_tab_3">贷中资料</a></li>
						                            <li class=""><a data-toggle="tab" href="#tab-10" onclick="clickLeftTab4();" id="left_tab_4">财务相关</a></li>
						                            <li class=""><a data-toggle="tab" href="#tab-11" onclick="clickLeftTab5();" id="left_tab_5">贷后资料</a></li>
						                            <li class=""><a data-toggle="tab" href="#tab-16" onclick="clickLeftTab10(24);" id="left_tab_10">身份证明</a></li>
						                            <li class=""><a data-toggle="tab" href="#tab-12" onclick="clickLeftTab6(18);" id="left_tab_6">附件归档</a></li>
						                            <li class=""><a data-toggle="tab" href="#tab-13" onclick="clickLeftTab7(19);" id="left_tab_7">历史信息</a></li>
						                            <li class=""><a data-toggle="tab" href="#tab-14" onclick="clickLeftTab8(20);" id="left_tab_8">鑫合汇</a></li>
						                        </ul>
						                        
						                         <div class="tab-content">
						                            <div id="tab-7" class="tab-pane active">
														<div class="panel-body" style="border-bottom: none">
														 	<div id="outersp" class="outer">
															    <ul id="tabsp" class="taber">
															        <li class="current" onclick="splz(1);" id="right_tabl_1">审批流转</li>
															        <li onclick="zhxx(2);" style="display: none;">综合信息</li>
															    </ul>
															    <div id="contentsp" class="contenter">
															        <ul class="ul-style" style="display:block;">
															            <%@include file="/web/system/kehubiao/splz.jsp"%>	
															    	</ul>
															    	<ul class="ul-style" style="display: none;">
															            <%@include file="/web/system/kehubiao/zhxx.jsp"%>	
															    	</ul>
															    </div>	    
						                        			</div>
						                        		</div>
						                        	</div>
						                   			
						                   			 <div id="tab-15" class="tab-pane">
														<div class="panel-body">
														 	<div id="outerzx">
															    <ul id="tabzx">
															    	<li class="current" onclick="shouGongZhengXin(22);" id="right_tabl_2">银行征信手工</li>
															        <li onclick="jieKouZhengXin(23);">银行征信接口</li>
															       <!--  <li onclick="dqzlBairong()">百融征信</li> -->
															    </ul>
															    <div id="contentzx">
															        <ul class="ul-style" style="display:block;">
															            <%@include file="/web/system/kehubiao/shouGongZhengXin.jsp"%>	
															    	</ul>
															    	<ul class="ul-style" style="display: none;">
															            <%@include file="/web/system/kehubiao/jieKouZhengXin.jsp"%>
															    	</ul>
															    	<!-- <ul class="ul-style" style="display: none;">
															            <div class="business-padding">正在开发中</div>
															    	</ul> -->
															    </div>	    
						                        			</div>
						                        		</div>
						                        	</div>
						                        	
						                            <div id="tab-8" class="tab-pane">
														<div class="panel-body">
														 	<div id="outer">
															    <ul id="tab">
															        <li onclick="chelxx(4);" id="right_tabl_7">车辆&车贷</li>
															        <li id="zhujierenLi" onclick="showUl('zhujieren','', 5);" style="display: none;">购车人</li>
															        <li id="peiouLi" onclick="showUl('peiou','', 5);" style="display: none;">共同购车人</li>
															        <li id="danbaoren1Li" onclick="showUl('danbaoren1','', 5);" style="display: none;">担保人一</li>
															        <li id="danbaoren2Li" onclick="showUl('danbaoren2','', 5);" style="display: none;">担保人二</li>
															        <li id="danbaoren3Li" onclick="showUl('danbaoren3','', 5);" style="display: none;">担保人三</li>
															        <li id="danbaoren4Li" onclick="showUl('danbaoren4','', 5);" style="display: none;">担保人四</li>
															    	<li class="current" onclick="jkkk(21);" id="right_tabl_2a">接口开卡信息</li>
															    </ul>
															    <div id="content">
															        <ul class="ul-style">
															           <%@include file="/web/system/kehubiao/chelxx.jsp"%>
															        </ul>
															        <ul id="zhujierenUl" class="ul-style" style="display: none;">
															            <%@include file="/web/system/kehubiao/gcrxx.jsp"%>
															        </ul>
															        <ul id="peiouUl" class="ul-style" style="display: none;">
															          	<%@include file="/web/system/kehubiao/gtgcr.jsp"%>
															        </ul>
															        <ul id="danbaoren1Ul" class="ul-style" style="display: none;">
															          	<%@include file="/web/system/kehubiao/danbaoren1xx.jsp"%>
															        </ul>
															        <ul id="danbaoren2Ul" class="ul-style" style="display: none;">
															          	<%@include file="/web/system/kehubiao/danbaoren2xx.jsp"%>
															        </ul>
															        <ul id="danbaoren3Ul" class="ul-style" style="display: none;">
															          	<%@include file="/web/system/kehubiao/danbaoren3xx.jsp"%>
															        </ul>
															        <ul id="danbaoren4Ul" class="ul-style" style="display: none;">
															          	<%@include file="/web/system/kehubiao/danbaoren4xx.jsp"%>
															        </ul>
															        <ul id="danbaoren5Ul" class="ul-style" style="display: none;">
																		<jsp:include flush="true" page="/web/system/kehubiao/autoOpenCard.jsp"/>
															        </ul>
															    </div>
															</div>
														</div>
						                            </div>
						                            
						                            <div id="tab-9" class="tab-pane">
														<div class="panel-body">
														 	<div id="outernine">
															    <ul id="tabnine">
															        <li class="current" onclick="zhxx(6);" id="right_tabl_3">业务流程信息</li>
															        <li onclick="cheliangxx(7);">车辆信息</li>
															        <li onclick="gpsxx(8);">GPS信息</li>
															        <li onclick="diyaxx(9);">抵押信息</li>
															    </ul>
															    
															    <div id="contentnine">
															        <ul class="ul-style" style="display:block;">
															       		<%@include file="/web/system/kehubiao/ywlcxx.jsp"%>
																	</ul>
															        <ul class="ul-style">
																		<%@include file="/web/system/kehubiao/cheliangxx.jsp"%>
																	</ul>
															        <ul class="ul-style">
																		<%@include file="/web/system/kehubiao/gpsxx.jsp"%>							
																	</ul>
															        <ul class="ul-style">
																		<%@include file="/web/system/kehubiao/diyaxx.jsp"%>			
																	</ul>
															    </div> 
															</div>    
						                            	</div>
						                            </div>	
						                            
						                            <div id="tab-10" class="tab-pane">
														<div class="panel-body">
														 	<div id="outercw">
															    <ul id="tabcw">
															        <li class="current" onclick="baobiaoxx(10);" id="right_tabl_4">按揭日报表</li>
															        <li onclick="zhxx(11);">放贷信息</li>
															        <li onclick="caiwudakuan(12);">财务打款</li>
															        <li onclick="shuzhixx(13);">财务收支</li>
															    </ul>
															    
															    <div id="contentcw">
															        <ul class="ul-style" style="display:block;">	
															        	<%@include file="/web/system/kehubiao/baobiaoxx.jsp"%>			
															        </ul>
															        <ul class="ul-style">
															        	<%@include file="/web/system/kehubiao/fankuanxx.jsp"%>			
															        </ul>
															        <ul class="ul-style">
															        	<%@include file="/web/system/kehubiao/caiwudakuan.jsp"%>		
															        </ul>
															        <ul class="ul-style">
															        	<div class="business-padding">
																			<table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table">
																				<tr>
																					<td align="right">
																						<label class="control-label np">应收款齐全时间：</label>
																					</td>
																					<td> 
																						<input id="shouzhi_dateComplete" name="shouzhi_dateComplete" class="form-control" readonly="readonly""/>
																					</td>
																					<td align="right">
																						<label class="control-label np">应收款备注：</label>
																					</td>
																					<td> 
																						<textarea class="form-control" style="resize: none;" id="shouzhi_income_remarks" readonly="readonly" name="shouzhi_income_remarks" cols="60" rows="1" ></textarea>
																					</td>
																				</tr>
																			</table>	
																	    </div>
																		<div class="business-padding">
														            		<div class="jqGrid_wrapper">
																	          <table id="table_list_2"></table>
																	     	</div>
																     	</div>
																	</ul>
															    </div> 
															</div>    
						                            	</div>
						                            </div>
						                            <div id="tab-11" class="tab-pane">
														<div class="panel-body">
														 	<div id="outerdh">
															    <ul id="tabdh">
															        <li class="current" onclick="yewulicxx(14);" id="right_tabl_5">业务流程信息</li>
															        <li onclick="xianggaunbaox(15);">相关保险</li>
															        <li onclick="chuxianqk(16);">出险情况</li>
															        <li onclick="yuqiqk(17);">逾期情况</li>
															    </ul>
															    
															    <div id="contentdh">
															        <ul class="ul-style" style="display:block;">	
															        	<%@include file="/web/system/kehubiao/yewulicxx.jsp"%>		
															        </ul>
															        <ul class="ul-style">
															        	<%@include file="/web/system/kehubiao/xianggaunbaox.jsp"%>	
															        </ul>
															        <ul class="ul-style">	
																		<%@include file="/web/system/kehubiao/chuxianqk.jsp"%>	
															        </ul>
															        <ul class="ul-style">
															        	<div class="business-padding">
														            		<div class="jqGrid_wrapper">
																	          <table id="table_list_3"></table>
																	     	</div>
																     	</div>
															        </ul>
															    </div> 
															</div>    
						                            	</div>
						                            </div>
						                            
						                            <div id="tab-16" class="tab-pane">
						                                <%@include file="/web/system/kehubiao/shenfenzil.jsp"%>	
						                            </div>
						                            
						                            <div id="tab-12" class="tab-pane">
						                                <%@include file="/web/system/kehubiao/fujianzil.jsp"%>	
						                            </div>
						                            <div id="tab-13" class="tab-pane">
														<div class="panel-body">
														 	<div id="outerhistory">
															    <ul id="tabhistory">
															        <li id="zhujierenLiHistory" class="current" onclick="showUl('zhujieren', 'History', 19); history(19, 'zhujieren', this);">主借人</li>
															        <li id="peiouLiHistory" onclick="showUl('peiou', 'History', 19); history(19, 'peiou', this);" style="display: none;">配偶</li>
															        <li id="danbaoren1LiHistory" onclick="showUl('danbaoren1', 'History', 19); history(19, 'danbaoren1', this);" style="display: none;">担保人一</li>
															        <li id="danbaoren2LiHistory" onclick="showUl('danbaoren2', 'History', 19); history(19, 'danbaoren2', this);" style="display: none;">担保人二</li>
															        <li id="danbaoren3LiHistory" onclick="showUl('danbaoren3', 'History', 19); history(19, 'danbaoren3', this);" style="display: none;">担保人三</li>
															        <li id="danbaoren4LiHistory" onclick="showUl('danbaoren4', 'History', 19); history(19, 'danbaoren4', this);" style="display: none;">担保人四</li>
															    </ul>
															    
															    <div id="contenthistory">
															    	<ul id="zhujierenUlHistory" class="ul-style" style="display:block;">
															       		<%@include file="/web/system/kehubiao/gcrhistory.jsp"%>
																	</ul>
																	<ul id="peiouUlHistory" class="ul-style" style="display: none;">
															       		<%@include file="/web/system/kehubiao/gtgcrhistory.jsp"%>
																	</ul>
															        <ul id="danbaoren1UlHistory" class="ul-style" style="display: none;">
															       		<%@include file="/web/system/kehubiao/danbaoren1history.jsp"%>
																	</ul>
															        <ul id="danbaoren2UlHistory" class="ul-style" style="display: none;">
																		<%@include file="/web/system/kehubiao/danbaoren2history.jsp"%>
																	</ul>
															        <ul id="danbaoren3UlHistory" class="ul-style" style="display: none;">
																		<%@include file="/web/system/kehubiao/danbaoren3history.jsp"%>							
																	</ul>
															        <ul id="danbaoren4UlHistory" class="ul-style" style="display: none;">
																		<%@include file="/web/system/kehubiao/danbaoren4history.jsp"%>			
																	</ul>
															    </div> 
															</div>    
						                            	</div>
						                            </div>
						                            <div id="tab-14" class="tab-pane">
						                                <%@include file="/web/system/kehubiao/xinhehui.jsp"%>	
						                            </div>
						                            
						                        </div>
						                    </div>
						                </div>
						            </div>
						         </div>
						      </div>
						</div>
					</ul>
				</div>
			</div>
		</div>
	</div>					
</div>	
	<!-- public quote -->
    <%@include file="/jsp/comm_js_include.jsp"%>

 	<!-- summernote -->
 	<%@include file="/js/common-dpqc/dpqc-summernote/comm_summernote_include.jsp"%>
 	<!-- 文件上传 -->
 	<%@include file="/jsp/common_fileupload_include.jsp"%>
 	
 	<!-- jqGrid -->
    <script type="text/javascript" charset="utf-8" src="${basePath}/js/plugins/jqgriddemo/js/jquery.jqGrid.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="${basePath}/js/plugins/jqgriddemo/js/grid.locale-cn.min.js"></script>	
	<script type="text/javascript" src="${basePath}/js/kehubiao/customer.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/splz.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/zhxx.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/shouGongZhengXin.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/gcr.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/chelxx.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/cheliangxx.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/gpsxx.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/diyaxx.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/baobiaoxx.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/dakuan.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/shouzhixx.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/yewlicxx.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/xianggaunbaox.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/chuxianqk.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/yuqixx.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/fujianzil.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/history.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/xinhehui.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/autoOpenCard.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<script type="text/javascript" src="${basePath}/js/kehubiao/jieKouZhengXin.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
 	<!-- layerDate plugin javascript -->
    <script type="text/javascript" src="${basePath}/js/plugins/layer/laydate/laydate.js"></script>
 	<!-- 
 	    作者：程立勇
 	   描述：js脚本
 	 -->
<script type="text/javascript">
var busiId;
var queryCreditApplyId;
 	   $(document).ready(function () {
 		  	changeIdNo();
 		     busiId = $('#taball li:first').attr('id');
 		     queryCreditApplyId = $('#taball li:first').attr('queryCreditApplyId');
 		     currentTabGlobal = 1; //初始化选项卡
 		    /* 业务信息 */
 		    getYwBusinessDetail();
	        // getYwBusinessDetailZ('${basePath}/BaseCustomerController/ywBusinessDetail');
 		    /* 审批记录 */
	         getSpList('${basePath}/OtherAuditInfoController/list');
	 	});
 	   
 	  /* 业务信息 */ 
 	  function getYwBusinessDetail(fn){
 		 getYwBusinessDetailZ('${basePath}/BaseCustomerController/ywBusinessDetail', fn); 
 	  }
 	    //首先展示的数据
	 	function homePage(obj){
	 		currentContent(obj);
	 	}
 	   function clickLeftTab1(){
 		 $('#right_tabl_1').click();
 	   }
 	  function clickLeftTab2(currentTab){
 		 hideAllTabs();
 		 gcrxx(currentTab);
 		 $('#right_tabl_7').click(); 
	   }
 	 function clickLeftTab3(){
 		$('#right_tabl_3').click(); 
	   }
 	function clickLeftTab4(){
 		$('#right_tabl_4').click();  
	  }
 	 function clickLeftTab5(){
 		$('#right_tabl_5').click();
	  }
 	 function clickLeftTab6(currentTab){
 		fujian(currentTab);
 	 }
 	 
 	 function clickLeftTab10(currentTab){
 		fujian(currentTab);
 	 }
 	 /*  历史信息  */
	  function clickLeftTab7(currentTab){
		 history(currentTab);
	  }
 	 function clickLeftTab8(currentTab){
 		 currentTabGlobal = currentTab;
 		 getXinHeHuiInfoZ();
	   }
 	 
 	function clickLeftTab9(currentTab){
 		 currentTabGlobal = currentTab;
		 $('#right_tabl_2').click();
	   }
 	 
 	 function fujian(currentTab){
 		 currentTabGlobal = currentTab;
 		 getFujianzilZ();
 		 $('#right_tabl_6').click();
 		 $('#right_tabl_16').click();
 	 }
 	    //审批
 	   function splz(currentTab){
 		   currentTabGlobal = currentTab;
	 		var postData = $("#table_list_1").jqGrid("getGridParam", "postData");
			$.extend(postData, {busiId:busiId});
	        $("#table_list_1").jqGrid("setGridParam", { search: true }).trigger("reloadGrid", [{ page: 1}]);
 	   }
 		/* 综合信息**业务流程信息**放贷信息*/
 	   function zhxx(currentTab){
 		  currentTabGlobal = currentTab;
 	      getZhxx('${basePath}/BaseCustomerController/zhxxDetail');
 	   }
 		
 	  /* 征信情况 ：手工模式*/
 	   function shouGongZhengXin(currentTab){
 		  currentTabGlobal = currentTab;
	      getZxcx('${basePath}/BaseCustomerController/zxcxDetail');
 	   }
 	  /* 征信情况：接口模式 */
 	  function jieKouZhengXin(currentTab){
 		 currentTabGlobal = currentTab;
 		 getJkZxcx('${basePath}/BaseCustomerController/zxcxDetail');
 	  }
 	  
 	  
 	//数据字典 接口开卡
 	  function jkkk(currentTab){
 		 currentTabGlobal = currentTab;
 		 getDataMore('${basePath}/YwOpenCardHzicbcSubController/list');
 		 getjkData('${basePath}/YwOpenCardHzicbcController/list');
 	  }
 	  
 	  /* 购车人信息**共同购车人*/
 	   function gcrxx(currentTab){
 		  currentTabGlobal = currentTab;
	      getGcr('${basePath}/BaseCustomerController/gcrDetail');
 	   }
 	  
 	  /* 购车人信息**共同购车人*/
 	   function gcrxxOnly(){
 		  hideAllTabs();
	      getGcr('${basePath}/BaseCustomerController/gcrDetail');
 	   }
 	  /* 车辆&车贷 */
 	   function chelxx(currentTab){
 		  currentTabGlobal = currentTab;
	       getChlxx('${basePath}/BaseCustomerController/chlxxDetail');
 	   }
 	  /* 车辆信息 &车牌*/
 	   function cheliangxx(currentTab){
 		  currentTabGlobal = currentTab;
	       getCheliangxx('${basePath}/BaseCustomerController/cheDetail');
 	   }
 	   /* GPS*/
 	   function gpsxx(currentTab){
 		  currentTabGlobal = currentTab;
	        getGpsxx('${basePath}/BaseCustomerController/gpsDetail'); 	   
 		}
 	   /*抵押信息 */
 	   function diyaxx(currentTab){
 		  currentTabGlobal = currentTab;
	       getDiyaxx('${basePath}/BaseCustomerController/diyaDetail');  
 		}
 	   /* 按揭日表表 */
 	   function baobiaoxx(currentTab){
 		  currentTabGlobal = currentTab;
          getBaobiaoxx('${basePath}/BaseCustomerController/baobiaoDetail');
 		}
 	  /* 财务打款 */
 	   function caiwudakuan(currentTab){
 		  currentTabGlobal = currentTab;
 		  getDakuanxx('${basePath}/BaseCustomerController/dakuanDetail');
 		}
 	   /*收支管理 */
 	   function shuzhixx(currentTab){
 		  currentTabGlobal = currentTab;
	        getShzList('${basePath}/CwIncomeExpensesItemController/list','${basePath}/BaseCustomerController/shouZhiDetail');
 		}
 	   /*业务流程信息登记 */
 	   function yewulicxx(currentTab){
 		  currentTabGlobal = currentTab;
 		  getYewlixx('${basePath}/BaseCustomerController/yewliDetail');
 		}
 	  /*相关保险 */
 	   function xianggaunbaox(currentTab){
 		  currentTabGlobal = currentTab;
 		  getBaoXxx('${basePath}/BaseCustomerController/baoxianDetail');
 		}
 	  /*出险记录 */
 	   function chuxianqk(currentTab){
 		  currentTabGlobal = currentTab;
 		  getChuxianxx('${basePath}/BaseCustomerController/chuxianDetail');
 		}
       /*逾期情况*/
       function yuqiqk(currentTab){
    	   currentTabGlobal = currentTab;
       	  getYuqiList('${basePath}/BaseCustomerController/yuqiList');
       }
       /*保险详情*/
       function getBaoxDetailZ(){
    	   getBaoxDetail('${basePath}/BaseCustomerController/baoxianDetail');
       }
       /*出险详情*/
       function getChuxianDetailZ(){
    	   getChuxianDetail('${basePath}/BaseCustomerController/chuxianDetail');
       }
       
       /* 附件信息 */
       var firstFujianzil = true;
       function getFujianzilZ(){
    	   if(firstFujianzil) {
    		   firstFujianzil = false;
	    	   getFujianzil();
    	   }
       }
       
       /* 历史信息 */ 
 	   function history(currentTab, target, liObj) {
 		  	currentTabGlobal = currentTab;
    	    var targetIdNo = '';
    	    if(liObj) {
    	    	targetIdNo = $(liObj).attr('targetIdNo')
    	    }
 		  	getHistoryList('${basePath}/BaseCustomerController/historyLists', target, targetIdNo);
 	   }
 	  /* 鑫合汇信息 */ 
       function getXinHeHuiInfoZ() {
    	   getXinHeHuiInfo('${basePath}/BaseCustomerController/xinhehuiDetail');
       }
       
       /* 重置审批流转 */
       function resetSplz(){
    	  $('.splztab').each(function(){
	 			var id =$(this).attr('id');
	 			space(id);
	 	   });
       }
	 	
	 	/* 流转卡 */
	 	function showSplz(phoneStatus, busiStatus,channelType, channelStatus, lessInformationStatus,addedStatus1, pickCarStatus, registrationPlatesStatus, pledgeStatus, lendingStatus, depositMoneyStatus,carType,lastBusiStatus) {
	 		 if(phoneStatus == '${phoneStatusNames.PHONE_1_ING}') {
	 			green('dsys');
	 			space('dses');
	 		 } else if(phoneStatus == '${phoneStatusNames.PHONE_2_ING}') {
	 			 grey('dsys');
	 			 green('dses');
	 		 } else if(phoneStatus == '${phoneStatusNames.PHONE_2_SUCCESS}'){
	 			 grey('dsys');
	 			 grey('dses');
	 		 } else if(phoneStatus == '${phoneStatusNames.PHONE_1_FAIL}'){
	 			 grey('dsys');
	 			 space('dses');
	 		 } else if(phoneStatus == '${phoneStatusNames.PHONE_2_FAIL}'){
	 			 grey('dsys');
	 			 grey('dses'); 
	 		 } else {
	 			 space('dsys');
	 			 space('dses');
	 		 }
	 		 
	 		 if(pickCarStatus == 0) {
	 			space('tcqr');
	 		 } else if(pickCarStatus == 1) {
	 			green('tcqr');
	 		 } else if(pickCarStatus == 2) {
	 			grey('tcqr');  
	 		 } else if(pickCarStatus == 3) { //二手车
	 			space('tcqr');  
	 		 }
	 		 //车辆资料复审
	 		 if(carType == '02') {
	 			 if(busiStatus == 210) {
	 				green('clzlfs');
	 			 } else if(busiStatus < 210) {
	 				space('clzlfs');
	 			 } else if(busiStatus >= 9000){
	 				if(lastBusiStatus <= 210) {
	 					space('clzlfs');
		 			 } else {
		 				grey('clzlfs');
		 			 }
	 			 } else {
	 				grey('clzlfs'); 
	 			 }
	 		 } else if(carType == '01') {
	 			if(busiStatus == 400) {
	 				green('clzlfs');
	 			 } else if(busiStatus < 400) {
	 				space('clzlfs');
	 			 } else if(busiStatus >= 9000) {
	 				if(lastBusiStatus <= 400) {
	 					space('clzlfs');
		 			 } else {
		 				grey('clzlfs');
		 			 }
	 			 } else {
	 				grey('clzlfs'); 
	 			 }
	 		 }
	 		 if(pickCarStatus == 0) {
	 			space('tcqr');
	 		 } else if(pickCarStatus == 1) {
	 			green('tcqr');
	 		 } else if(pickCarStatus == 2) {
	 			grey('tcqr');  
	 		 } else if(pickCarStatus == 3) { //二手车
	 			space('tcqr');  
	 		 }
	 		 
	 		 if(registrationPlatesStatus == 0) {
	 			space('cpdj');
	 		 } else if(registrationPlatesStatus == 1) {
	 			green('cpdj');
	 		 } else if(registrationPlatesStatus == 2) {
	 			grey('cpdj');  
	 		 }
	 		 
	 		 if(pledgeStatus == 0) {
	 			space('dyqr');
	 		 } else if(pledgeStatus == 1) {
	 			green('dyqr');
	 		 } else if(pledgeStatus == 2) {
	 			grey('dyqr');  
	 		 }
	 		 
	 		 if(lendingStatus == 0) {
	 			space('aqhk');
	 		 } else if(lendingStatus == 1) {
	 			green('aqhk');
	 		 }
	 		 
	 		 if(depositMoneyStatus == 0) {
	 			space('tyjcs');
	 			space('tyjxb');
	 		 } else if(depositMoneyStatus == 1) {
	 			green('tyjcs');
	 			green('tyjxb');
	 		 } else if(depositMoneyStatus == 2) {
	 			grey('tyjcs');
	 			green('tyjxb');
	 		 } else if(depositMoneyStatus == 3) {
	 			green('tyjcs');
	 			grey('tyjxb');
	 		 } else if(depositMoneyStatus == 4) {
	 			grey('tyjcs');
	 			grey('tyjxb');
	 		 }
	 		 
	 		 if(!lessInformationStatus || lessInformationStatus == '') {
	 			space('zlbqbs');
	 		 } else if(lessInformationStatus == '${lessInformationStatusNames.QIAN_ZI_LIAO}'){
	 			green('zlbqbs');
	 		 } else if(lessInformationStatus == '${lessInformationStatusNames.ZI_LIAO_QI_QUAN}'){
	 			space('zlbqbs');
	 		 } else if(lessInformationStatus == '${lessInformationStatusNames.ZI_LIAO_YI_BU_QI}'){
	 			grey('zlbqbs');
	 		 }
	 		 if(lastBusiStatus == 9070) {
	 			grey('zlbqbs');
	 		 }
	 		 
	 		 if(!channelType || channelType == '') {
	 			space('lstdbs');
	 		 } else if (channelType == '50') {
	 			 if(!channelStatus || channelStatus == '') {
	 				space('lstdbs');
	 			 } else if(channelStatus == '10') {
	 				green('lstdbs');
	 			 } else if(channelStatus == '20') {
	 				grey('lstdbs');
	 			 } else if(channelStatus == '90') {
	 				grey('lstdbs');
	 			 }
	 		 } else {
	 			space('lstdbs');
	 		 }
	 		 $('.splztab').each(function(){
	 			var id =$(this).attr('id');
	 			
	 			var cw = $(this).attr('cw');
	 			if(cw && cw != '') {
	 				if(cw < addedStatus1) {
	 					grey(id);
	 				} else if(cw == addedStatus1) {
	 					green(id);
	 				} else {
	 					space(id);
	 				}
	 			 }
	 			
	 			
	 			var equal = $(this).attr('equal');
	 			var second = $(this).attr('second');
	 			var min = $(this).attr('min');
	 			var max = $(this).attr('max');
	 			
	 			equalLz(busiStatus, lastBusiStatus, id, equal, second, min, max);
	 			 
	 			if(carType == '01') { //新车时，二手车过户审核重置为空
	 				space('escbs');
	 			}
	 		 });
	 		 
	 		if(addedStatus1) {
	 			if(addedStatus1 <= 20) {
		 			space('sqdz'); 
		 		 } else if(addedStatus1 >= 100){
		 			if(addedStatus1 == 400) {
		 				green('sqdz');
			 			space('cwyshz');
			 			space('cweshz');
			 			space('cwfk');
		 			} else {
		 				grey('sqdz'); 
		 			}
		 		 }
	 		 } else {
	 			space('sqdz');  
	 		 }
	 	}
	 	
	 	//主状态
	 	function equalLz(busiStatus, lastBusiStatus, id, equal, second, min, max){
	 		
	 		if(equal && equal != '' && equal >= 9810 && lastBusiStatus) { //弃贷，退贷等
	 			if(equal == busiStatus) {
					grey(id);
				} else {
					space(id);
				}
	 		} else if(equal && equal != ''){
	 			if(second && second != '' && lastBusiStatus > 9000 ) { //审核不通过等结束了的订单
	 				if(second <= lastBusiStatus) {
						grey(id);
					} else {
						space(id);
					}
	 			} else {  //还没有结束的订单
			 		if(equal < busiStatus) {
						grey(id);
					} else if(equal == busiStatus) {
						green(id);
					} else {
						space(id);
					}
	 			}
	 		}
	 		
	 		if(min && min != '' && max && max != '' && max <= 9810 && lastBusiStatus) {
 				 if(lastBusiStatus < min) {
 				    space(id);
 				 } else if(lastBusiStatus >= min && lastBusiStatus <= max){
 					if(lastBusiStatus > 9000) {
 						grey(id);
 					} else {
 						green(id);
 					}
 				 } else {
 					grey(id);
 				 }
	 		} else {
	 			if(busiStatus < min) {
 				    space(id);
 				 } else if(busiStatus >= min){
 					grey(id);
 				 }
	 		}
	 	}
	 	
	 	//业务信息
		function getYwBusinessDetailZ(url,fn){
			$.dpAjax({
		 		url:url,
				data:{busiId:busiId},
				success: function(datas){
	 				 var data = datas.result;
	 				 if(data){
	 					 //提车状态
	 					 var pickCarStatus = data.pickCarStatus;
	 					 //车牌登记状态
	 					 var registrationPlatesStatus = data.registrationPlatesStatus;
	 					 //抵押状态
	 					 var pledgeStatus = data.pledgeStatus;
	 					 //按期还款状态
	 					 var lendingStatus = data.lendingStatus;
	 					 //退押金状态
	 					 var depositMoneyStatus = data.depositMoneyStatus;
	 					 //（弃贷后）最后状态
	 					 var lastBusiStatus = data.lastBusiStatus;
	 					 //银行订单号
	 					 var ordeRno = data.ordeRno;
	 					 if(ordeRno && ordeRno != ""){
	 						$("#ordeRno").text(ordeRno);
	 					 }else{
	 						$("#ordeRno").text("-");
	 					 }
	 					 /* 业务信息 */
	     				 var ywBusinessDetail = data.ywBusinessDetail;
	     				 if(ywBusinessDetail) {
	     						/**
	 		     				 * 打包附件操作
	 		     				 * 1：暂无
	 		     				 * 2: 生成中
	 		     				 * 3：下载
	 		     				 * 4：生成
	 		     				 */
 		 					var xhhoperationName = '';
 		 					var xhhoperationType = ywBusinessDetail.xhhOperationType;
 		 					 if(xhhoperationType == 1) {
 		 						xhhoperationName = '<span style="color:#FC1515;">鑫合汇打包资料暂无<span>';
 		 					 } else if(xhhoperationType == 2){
 		 						xhhoperationName = '鑫合汇打包资料生成中';
 		 					 } else if(xhhoperationType == 3){
 		 						xhhoperationName = '<a type="button" download="' + ywBusinessDetail.xhhRarName + '" href="' + ywBusinessDetail.xhhRarOssPath + '">鑫合汇打包资料下载</a>';
 		 					 } else if(xhhoperationType == 4){
 		 						xhhoperationName = '<a type="button" href="javascript:void(0);" onclick="createXhhRar(\'' + ywBusinessDetail.replaceId + '\');">鑫合汇打包资料生成</a>';
 		 					 }
 		     				 $('#xhhOptionType').html(xhhoperationName);
		     				 $('#customerNameZ').text(ywBusinessDetail.customerName);
 		     				 $('#noRecord').text(ywBusinessDetail.noRecord);
		     				 $('#busiCode').text(ywBusinessDetail.busiCode);
		     				 $('#orgName').text(ywBusinessDetail.orgName);
		     				 $('#salesmanName').text(ywBusinessDetail.salesmanName);
		     				 $('#channelType').text(ywBusinessDetail.channelTypeDisplay);
		     				 $('#channelStatus').text(ywBusinessDetail.channelStatusDisplay);
		     				 $('#dealerName').text(ywBusinessDetail.dealerName);
		     				 $('#dealerLevel').text(ywBusinessDetail.dealerLevelDisplay);
		     				 $('#loanBank').text(ywBusinessDetail.loanBankDisplay);
		     				 $('#loanType').text(ywBusinessDetail.loanTypeDisplay);
		     				 $('#zhxx_loanAmount').text(ywBusinessDetail.realLoanAmount?ywBusinessDetail.realLoanAmount.toFixed(2):'-');
		     				 $('#zhxx_realLoanAmount').text(ywBusinessDetail.realLoanAmount?ywBusinessDetail.realLoanAmount.toFixed(2):'-');
		     				 $('#fangk_realLoanAmount').text(ywBusinessDetail.realLoanAmount?ywBusinessDetail.realLoanAmount.toFixed(2):'-');
		     				 var operationName = '';
		     				 var operationType = ywBusinessDetail.operationType;
		     				 
		     				/**
		     				 * 打包附件操作
		     				 * 1：暂无
		     				 * 2: 生成中
		     				 * 3：下载
		     				 * 4：生成
		     				 */
		 					 var operationName = '';
		 					 if(operationType == 1) {
		 						operationName = '<span style="color:#FC1515;">暂无<span>';
		 					 } else if(operationType == 2){
		 						operationName = '生成中';
		 					 } else if(operationType == 3){
		 						operationName = '<a type="button" class="btn dpbtn_small_red" download="' + ywBusinessDetail.rarName + '" href="' + ywBusinessDetail.rarOssPath + '">下载</a>';
		 					 } else if(operationType == 4){
		 						operationName = '<a type="button" href="javascript:void(0);" onclick="createRar(\'' + ywBusinessDetail.replaceId + '\', \'' + ywBusinessDetail.queryCreditApplyId + '\');">生成</a>';
		 					 }
		     				 $('#optionType').html(operationName);
		     				 var phoneStatus = ywBusinessDetail.phoneStatus;
		     				 var busiStatus = ywBusinessDetail.busiStatus;
		     				 var channelType = ywBusinessDetail.channelType;
		     				 var channelStatus = ywBusinessDetail.channelStatus;
		     				 var lessInformationStatus = ywBusinessDetail.lessInformationStatus;
		     				 var addedStatus1 = ywBusinessDetail.addedStatus1;
		     				 var carType = ywBusinessDetail.carType;
		     				showSplz(phoneStatus, busiStatus, channelType, channelStatus, lessInformationStatus, addedStatus1, pickCarStatus, registrationPlatesStatus, pledgeStatus, lendingStatus, depositMoneyStatus,carType,lastBusiStatus);
		     				
		     				/**
		     				卡单已上传	5
		     				已保存	10
		     				待审核	50
		     				已提交	100
		     				开卡成功	200
		     				开卡失败	9000
		     				 */
		     				$("#openCardstate").text(ywBusinessDetail.openCardStatusDisplay);
		     				
		     				if(fn){
		     					fn();
		     				}
	     				 }
	     				 /* 附加信息 */
	     				var ywBusinessExtras = data.ywBusinessExtras;
	     				 if(ywBusinessExtras && ywBusinessExtras.length > 0) {
	     					var html = '';
	     					 for(var i = 0; i < ywBusinessExtras.length; i++){
	     						 var ywBusinessExtra = ywBusinessExtras[i];
	     						 var unit = '';
	     						 if(ywBusinessExtra.codeExtras == '${businessExtrasCodeTypeNames.ADD_GPS }') {
	     							$('#addGps_value_extras1').text(ywBusinessExtra.valueExtras);
	     							unit = '个';
	     						 } else if(ywBusinessExtra.codeExtras == '${businessExtrasCodeTypeNames.ADD_GEPOSIT }') {
	     							$('#addGeposit_value_extras1').text(ywBusinessExtra.valueExtras);
	     							unit = '元';
	     						 } else if(ywBusinessExtra.codeExtras == '${businessExtrasCodeTypeNames.IS_SPECIAL_ORDER }') {
	     							$('#box_order1').text(ywBusinessExtra.valueExtras === '1' ? '是' : '否');
	     						 }else if(ywBusinessExtra.codeExtras == '${businessExtrasCodeTypeNames.FLEXIBLE_CHARGE}') {
	     							$('#flexibleCharge1').text(ywBusinessExtra.valueExtras);
	     						 }
	     						 html += ywBusinessExtra.nameExtras + ywBusinessExtra.valueExtras + unit + '&nbsp;';
	     					 }
		     				$("#splz_extra").html(html);
	     				 } else {
	     					$('#addGps_value_extras1').text('-');
	     					$('#addGeposit_value_extras1').text('-');
	     					$('#box_order1').text('-');
	     					$("#splz_extra").html('-');
	     				 }
	 				 }
	         }
	 	});
	}
	 /**
	  * 生成RAR
	  */
	 function createRar(busiId, applyId){
		 if(!busiId || busiId == '' || !applyId || applyId == '') {
			 layer.msg('必须参数缺失', {icon: 5, time:2000});
			 return;
		 }
		 $.dpAjax({
	 		url:'${basePath}/BaseCustomerController/createRar',
			data:{busiId:busiId, applyId:applyId},
			success: function(datas){
				$('#optionType').html('生成中');
	        }
	 	});
	 }
	 function createXhhRar(busiId){
		 if(!busiId || busiId == '') {
			 layer.msg('必须参数缺失', {icon: 5, time:2000});
			 return;
		 }
		 $.dpAjax({
	 		url:'${basePath}/BaseCustomerController/createXhhRar',
			data:{busiId:busiId},
			success: function(datas){
				$('#xhhoptionType').html('鑫合汇打包资料生成中');
	        }
	 	});
	 }
	 
	 /**下载鑫合汇打包资料*/
	 function fujianDownload(){
	   	$.dpAjax({
	   		url:'${basePath}/YwXinHeHuiController/downloadRar',
	   		type:'POST',
	   		data:{busiId:busiId},
	   		success:function(datas)	{
	   			//成功响应，说明没有报错，可以下载
	   			location.href = datas.result;
	   			return;
	   		}
	   	});
	 }
</script>
</body>
</html>
